/**
 * Created by cj on 2017/5/7.
 */

var module = (function () {
    var _private = {
        i:5,
        get:function () {
            console.log("current value:"+this.i);
        },
        set:function (val) {
            this.i=val;
        },
        run:function () {
            console.log("running");
        },
        jump:function () {
            console.log("jumping");
        }
    };
    return {
        facade:function (args) {
            _private.set(args.val);
            _private.get();
            if(args.run){
                _private.run();
            }
        }
    };
}());